package com.qf.mrmd.controller;

import com.qf.mrmd.entity.Techn;
import com.qf.mrmd.service.TechnService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Techn)表控制层
 *
 * @author makejava
 * @since 2021-07-14 14:47:09
 */
@RestController
@RequestMapping("techn")
public class TechnController {
    /**
     * 服务对象
     */
    @Resource
    private TechnService technService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Techn selectOne(Integer id) {
        return this.technService.queryById(id);
    }

}
